﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using Cn.Edwon.Web.Support;
using Cn.Cellula.Biz.Port;
using Cn.Edwon.Spring;
using Cn.Cellula.Biz;
using System.Reflection;

namespace Cn.Cellula.Website.Ws {
    public partial class _Category : PageSupport {
        protected void Page_Load(object sender, EventArgs e) {
            try {
                Load2DdlJson();
            } catch(Exception ex) {
                log.Error(ex.Message);
                Response.Clear();
                Response.Write("null");
            }
        }
        private void Load2DdlJson() {
            String type = Request.QueryString["t"];
            String ownerKey = Request.QueryString["ok"];
            String rootKey = Request.QueryString["rk"];
            String json = BizFactory.Get<ICategoryBiz>().LoadCategory2JskitDdl(ownerKey, type, rootKey);
            Response.Clear();
            Response.Write(json);
        }
    }
}
